package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.CategoryCriteria;
import com.leo.ibatis.demo.domain.Category;

public interface CategoryDao {

	void insert(Category category) throws DataAccessException;

	int update(Category category) throws DataAccessException;

	int delete(String catid) throws DataAccessException;

	Category select(String catid) throws DataAccessException;

	List<Category> list(CategoryCriteria categoryCriteria) throws DataAccessException;
	
	List<Category> listOnPage(CategoryCriteria categoryCriteria) throws DataAccessException;
	
	int count(CategoryCriteria categoryCriteria) throws DataAccessException;

}
